﻿using System;

namespace ZyGame.Transport.Common
{
    public interface IChannelHandler : IDisposable
    {
        void HandleActived(IChannel channel);

        void HandleInactived(IChannel channel);

        void HandleReceive(IChannel channel, object message);

        void HandleException(IChannel channel, Exception ex);
    }
}
